package com.music.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.music.dao.SingerMapper;
import com.music.dao.SingerTypeMapper;
import com.music.entity.Singer;
import com.music.entity.SingerType;
import com.music.service.SingerService;
import com.music.service.SingerTypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

@Service
@Transactional
@Slf4j
public class SingTypeServiceImpl implements SingerTypeService {
    @Autowired
    private SingerTypeMapper singerTypeMapper;

    @Override
    public List<SingerType> getsingerType() {
        List<SingerType> singerTypeName = singerTypeMapper.getSingerTypeName();
        return singerTypeName;
    }
}
